export const transCodeToStr = (str) => {
    if (str == "=") {
        return "是";
    } else if (str == "!=") {
        return "不等于";
    }  else if (str == ">") {
        return "大于";
    } else if (str == "<") {
        return "小于";
    } else if (str == "<=") {
      return "小于等于";
    } else if (str == ">=") {
      return "大于等于";
    } else if (str == "ASC") {
        return "升序";
    } else if (str == "DESC") {
        return "降序";
    } else if (str == "IN") {
      return "包含";
    } else if (str == "NOT IN") {
      return "不包含";
    } else if(str == "BETWEEN") {
      return "区间";
    }else if(str == "IS NULL") {
      return "是";
    }else if(str == "IS NOT NULL") {
      return "不是";
    }
  return "";
}

// 生成随机颜色
export function generateRandomColor() {
    var letters = '0123456789ABCDEF';
    var color = '#';
    for (var i = 0; i < 6; i++) {
        color += letters[Math.floor(Math.random() * 16)];
    }
    return color;
}